package chapterfour.part1;

import java.security.NoSuchAlgorithmException;

import javax.crypto.KeyGenerator;

import com.sun.crypto.provider.DESKeyGenerator;

public class Trying {

	enum myColor{
	
		RED(10),
		BLUE(20),
		GRAY(10);
		  myColor(int value){
			
			  this.value=value;
		}
		int value;
	}
	
 
	public static void main(String[] args) throws  Exception {
		/* 
		int x=3;
		int z=1;
		int y=1;
		  x = y++ + ++x/z;  // 1+4
		  System.out.println(x);
		  System.out.println(y);
		  byte tt=105;
		  double ff=100;
		  System.out.println(ff=tt);
		  
		  myColor mc=myColor.RED;
		  myColor mn=myColor.RED;
		  myColor mt=myColor.GRAY;
		  
		 
		  System.out.println(mc==mt);
		  System.out.println("-------------------------------------------");
		  A vara=new A();
		  System.out.println((vara instanceof A) +"   "+(vara instanceof B) );
		  
		  *//*
		  String a = "String";
		  int b = 3;
		  int c = 7;
		  System.out.println(b  + 2 + a);
		  System.out.println(2  + b + a);


		
		  
System.out.println("-----------------------------------------------------");
	System.out.println(true | false);	
	System.out.println(false | true);	
	System.out.println(true | true);
	System.out.println(false | false);
System.out.println("-----------------------------------------------------");
	System.out.println(true & false);	
	System.out.println(false & false);	
	System.out.println(false & false);
System.out.println("-----------------------------------------------------");
	System.out.println(true ^ false);	
	System.out.println(false ^ false);	
	System.out.println(false ^ false);*/

		KeyGenerator ds=KeyGenerator.getInstance("DES");
		
		byte []tt=ds.generateKey().getEncoded();
		for (int i = 0; i < tt.length; i++) {
			System.out.println(tt[i]);
		}
}
	
}